<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script src="Common.js"></script>
	<script src="Local.js"></script>
</head>
<body>
	链接：<input id="textUrl" type="text" value="http://www.baidu.com"/>
		<input id="buttonOpen" type="button" value="打开"/>
		<input id="buttonStart" type="button" value="分析"/>
	<script>
		var page;
		var textUrl = Common.$("textUrl");
		var buttonOpen = Common.$("buttonOpen");
		var buttonStart = Common.$("buttonStart");
		buttonOpen.onclick = function() {
			page = window.open("http://www.baidu.com");
			page.attachEvent("onload", function() {
			});
		};
		buttonStart.onclick = function() {
			if (!page) return;
			alert(page.document.body.innerHTML);
		};
	</script>
</body>
</html>